<extend name='Public/_Main' />
<block name='title'>
    <title>配置修改</title>
</block>
<block name='right'>
    <div class='container-fluid'>
        <div class='row'>
            <form class="require" action="{:U('saeConfig')}" method="post">
                <div class="form-group">
                    <label for="exampleInputEmail1">配置标识<span class="Validform_checktip"></span></label>
                    <input type="text" class="form-control" placeholder="例：{$config.name}" disabled="disabled" value='{$config.name}' ignore="ignore">
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail1">配置标题<span class="Validform_checktip"></span></label>
                    <input type="text" class="form-control" placeholder="例：网站标题" datatype='*' nullmsg='请填写配置标题' errormsg='格式错误' name="title" ajaxurl='__URL__/config_name/id/{$Think.get.id}' value='{$config.title}' ignore="ignore">
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail1">配置分类<span class="Validform_checktip"></span></label>
                    <select name="group" class='form-control selectpicker' datatype='*' data-live-search="true">
                        <volist name='ifaction' id='vo'>
                            <option value="{$vo.id}" {$vo.selected}>{$vo.name}</option>
                        </volist>
                    </select>
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail1">排序<span class="Validform_checktip"></span></label>
                    <input type="text" class="form-control" placeholder="例：1" datatype='n' nullmsg='' errormsg='' name="sort" value='{$config.sort}'>
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail1">配置值<span class="Validform_checktip"></span></label>
                    <textarea class="form-control" rows="3" datatype='*' nullmsg='配置值不可为空' errormsg='格式错误' name='value'> {$config.value}</textarea>
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail1">说明<span class="Validform_checktip"></span></label>
                    <textarea class="form-control" rows="3" placeholder="例：用户网站前台标题配置" datatype='*' nullmsg='配置说明不可为空' errormsg='格式错误' name='remark'>{$config.remark}</textarea>
                </div>
                <input type='hidden' name='id' value='{$Think.get.id}'>
                <div class='col-xs-6'>
                    <button class="btn btn-lg btn-primary btn-block" type="submit">保存配置</button>
                </div>
                <div class='col-xs-6'>
                    <button class="btn btn-lg btn-default btn-block" type="button" onclick="javascript:history.back(-1);">返回</button>
                </div>
            </form>
        </div>
    </div>
</block>
